package oa.biz.impl;

import java.sql.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import oa.biz.ActivityBiz;
import oa.entity.Activity;
import oa.mapper.ActivityMapper;

@Service
public class ActivityBizImpl implements ActivityBiz{
	@Autowired
	private ActivityMapper act;
	@Override
	public List<Activity> getAll(int ActorId) {
		return act.getAll( ActorId);
	}

	@Override
	public Activity fetchBy() {
		return act.fetchBy();
	}

	@Override
	public List<Activity> getList(int ActorId) {
		return act.getList(ActorId);
	}

	@Override
	public void addActivity(Activity activity) {
			activity.setCreateTime(new Date(System.currentTimeMillis()));
			act.addActivity(activity);
		
	}

	@Override
	public int selectaddId() {

		return act.selectaddId();
	}
	
}
